from django.db import models

# Create your models here.
class Basetime(models.Model):
    time = models.DateTimeField(auto_now_add=True)
    uptime = models.DateTimeField(auto_now=True)
    class Meta:
        abstract = True

class Nuws(models.Model):
    bt = models.CharField(max_length=50,verbose_name='标题')
    text = models.TextField()
    class Meta:
        db_table = "Suws"

class Advertising(models.Model):
    pic = models.ImageField()
    domain = models.CharField(max_length=225)
    class Meta:
        db_table = "Advertising"